uniform sampler2D src;
uniform float d;

void main()
{
	vec2 coord = gl_TexCoord[0].xy;
	vec4 color = texture2D(src, coord)			* 0.399;
	color += texture2D(src, vec2(coord.x, clamp(coord.y+d,0.01,0.99))) 	* 0.242;
	color += texture2D(src, vec2(coord.x, clamp(coord.y+d*2,0.01,0.99))) 	* 0.054;
	color += texture2D(src, vec2(coord.x, clamp(coord.y-d,0.01,0.99)))	* 0.242;
	color += texture2D(src, vec2(coord.x, clamp(coord.y-d*2,0.01,0.99)))	* 0.054;
	gl_FragColor = color;
}